<script setup>
import { useRoute } from 'vue-router'

const route = useRoute()
</script>
<template>
  <div class="admin-home-page">
    <el-container>
      <el-header>Header</el-header>
      <el-container>
        <el-aside>
          <el-menu
            active-text-color="#ffd04b"
            background-color="#545c64"
            router
            :default-active="route.path"
            text-color="#fff"
          >
            <el-sub-menu index="/admin-home-page/user-manage">
              <template #title>
                <span>用户管理</span>
              </template>
              <el-menu-item index="/admin-home-page/user-manage">
                <template #title>
                  <span>用户管理</span>
                </template>
              </el-menu-item>
            </el-sub-menu>
            <el-sub-menu index="/admin-home-page/article-classify-manage">
              <template #title>
                <span>文章管理</span>
              </template>
              <el-menu-item index="/admin-home-page/article-classify-manage">
                <template #title>
                  <span>文章分类管理</span>
                </template>
              </el-menu-item>
              <el-menu-item index="/admin-home-page/wait-audit-article-manage">
                <template #title>
                  <span>待审核文章管理</span>
                </template>
              </el-menu-item>
            </el-sub-menu>
          </el-menu>
        </el-aside>
        <el-main>
          <el-card><router-view /></el-card>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<style scoped>
.el-header {
  height: 60px;
  width: 100%;
  background-color: aqua;
}
.el-container {
  width: 1528px;
  height: 633px;
}
.el-aside {
  width: 200px;
  height: 100%;
}
.el-menu {
  width: 100%;
  height: 100%;
}
.el-main {
  width: 1328px;
  height: 100%;
}
.el-card {
  height: 591px;
  width: 1269px;
}
</style>
